<?php
/**
 *
 * @category   babel 
 * @package    BABEL
 * @copyright  2008 Team babel
 * @license    LGPL
 */


// A language (translation) is enabled
define('_BABEL_LANGUAGE_ENABLED', 1);

// A language (translation) is disabled
define('_BABEL_LANGUAGE_DISABLED', 0);

//A user language skill is enabled.
define("BABEL_USER_SKILL_ENABLED",	1);

// Defining translation levels
define("BABEL_TRANSLATION_DEPRICATED",		0);
define("BABEL_TRANSLATION_TRANSLATION",		1);
define("BABEL_TRANSLATION_LIVE",			2);
define("BABEL_TRANSLATION_FINAL",			3);

/* {{{ Translation constants */
	// How many points a vote needs to be approved
	define("BABEL_POINTS_TO_APPROVE_VOTE", 100);
	
	//The voting points a translation starts with
	define("BABEL_INITIAL_TRANSLATION_POINTS",	0);
	
	// Vote is considered OK
	define("BABEL_VOTE_OK_TRANSLATION",	     1);
/* }}} */

/* {{{ Constants for user point calculations */
	//Maximum user skill
	define("BABEL_MAX_USER_SKILL",				100);
	
	//Minimum user skill
	define("BABEL_MIN_USER_SKILL",				1);
	
	//Starting skill of a user
	define("BABEL_STARTING_USER_SKILL",			10);
	
	//Upper level of linear skill progress
	define("BABEL_UPPER_LINEAR_SKILL_PROGRESS",	20);
	
	//Increment value of linear skill progress
	define("BABEL_LINEAR_INCREMENT_VALUE",		1);
	
	//Increment value of non linear skill progress
	define("BABEL_NON_LINEAR_INCREMENT_VALUE",		20);
	
	//Negative points for wrong translations
	define("BABEL_WRONG_TRANSLATION",			-1);
	
	//Positive experience points
	define("BABEL_POSITIVE_USER_EXP",			5);
	
	//Negative experience points
	define("BABEL_NEGATIVE_USER_EXP",			-1);

/* }}} */

// Dispute limit
define ("BABEL_DISPUTE_LIMIT", 2);
define ("BABEL_DISPUTE_FORCE", 3);

// Row color
define ("ROW_COLOR_1", "#EEEEEE");
define ("ROW_COLOR_2", "#DDDDDD");

// View translations status color
define("VIEW_BABEL_TRANSLATE_STATUS_VOTE",				"#99CCEE");
define("VIEW_BABEL_TRANSLATE_STATUS_APPROVED",			"#99FF99");
define("VIEW_BABEL_TRANSLATE_STATUS_SUPERSEDED",		"#00CC00");

// Constant for timelimiting selection of tasks
define("BABEL_STATUS_MAXLIFETIME",					5);
// No timilimiting in debug mode
define("BABEL_STATUS_DEBUGLIFETIME",				0);

// Maximum length on the language code
define('BABEL_LANGUAGE_CODE_LENGTH', 3);

// Maximum length of NEWS title
define('BABEL_NEWS_TITLE_MAXLENGTH', 30);

/**
 * babel_translations.status:
 * 		BABEL_TRANSLATE_STATUS_VOTE       => "Voting phase"
 * 		BABEL_TRANSLATE_STATUS_REJECTED   => "Rejected"
 * 		BABEL_TRANSLATE_STATUS_APPROVED   => "Approved"
 * 		BABEL_TRANSLATE_STATUS_SUPERSEDED => "superseded"
 */

define("BABEL_TRANSLATE_STATUS_VOTE",       1);
define("BABEL_TRANSLATE_STATUS_REJECTED",   2);
define("BABEL_TRANSLATE_STATUS_APPROVED",   3);
define("BABEL_TRANSLATE_STATUS_SUPERSEDED", 4);

define("BABEL_STATUS_IN_TRANSLATION",       4);

define("BABEL_TRANSLATE_VOTE_REASON_OK",       1);
define("BABEL_TRANSLATE_VOTE_REASON_TYPO",    -1);
define("BABEL_TRANSLATE_VOTE_REASON_GRAMMAR", -2);
define("BABEL_TRANSLATE_VOTE_REASON_OTHER",   -3);

$CHANGE_REASONS = array(
	BABEL_TRANSLATE_VOTE_REASON_TYPO    => "There was a minor typo",
	BABEL_TRANSLATE_VOTE_REASON_GRAMMAR => "Cleaned up the grammar",
	BABEL_TRANSLATE_VOTE_REASON_OTHER   => "Other reason",
);

